home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d12 / cchh01.arc / NOVELL.H < prev    next >
Text File  |  1986-03-14  |  589b  |  19 lines

  1. /**        Novel Variable length call buffers        **/
  2.  
  3.     int    length;
  4.     char    tx[300], rx[40];
  5.  
  6.     tx[1] = 0;            /* second byte of buffer length */
  7.     tx[2] = 19;            /* set command into buffer */
  8.     tx[3] = handle;         /* put handle into buffer */
  9.     tx[4] = drive + 'A';            /* convert drive number to alpha */
  10.     tx[5] = strlen(path);        /* set string length into buffer */
  11.     strcpy(&tx[6], path);        /* set string into buffer */
  12.     length = 4 + tx[5];        /* set up */
  13.     movmem(&length, tx, 2);     /* length of buffer */
  14.  
  15.     rx[0] = 38;            /* set return length */
  16.     rx[1] = 0;
  17.  
  18.     novell_function(tx, rx);
  19.